<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center">
        <div class="webmap">
            <p class="webmaptip">当前位置:</p>
            <a href="javascript:goHome();" class="easyui-link">内容管理</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link">问题分类</a>
        </div>
        <div class="querybycon">
            <form id="query">
                <div class="queryinfo">
                    <div> 问题分类 <input class="easyui-combobox" name="parent.id"
                                      data-options="valueField:'id' ,url:'/faqtype/parents'"></div>
                    <div> 问题栏目<input type="text" name="name"></div>
                    <div class="query">
                        <a id="querybtn" href="javascript:;" class="easyui-linkbutton  "
                           data-options="iconCls:'fa fa-search'"></a>
                    </div>
                </div>
            </form>
        </div>
        <div class="querybtn">
            <a id="add" href="javascript:;" class="easyui-linkbutton  warning"
               data-options="iconCls:'fa fa-plus'">添加</a>
            <a id="edit" href="javascript:;" class="easyui-linkbutton danger"
               data-options="iconCls:'fa fa-pencil'">编辑</a>
            <a id="del" href="javascript:;" class="easyui-linkbutton success"
               data-options="iconCls:'fa fa-remove'">删除</a>
            <a id="detail" href="javascript:;" class="easyui-linkbutton danger"
               data-options="iconCls:'fa fa-search'">查看</a>
            <div style="visibility: hidden;">aa</div>
        </div>
    </div>

    <div data-options="region:'center'">
        <table id="list"></table>
    </div>
</div>

<script type="text/javascript">

    var addUrl = "page/faq/faqtypeadd.html";
    var editUrl = "page/faq/faqtypeedit.html";
    var detailUrl = "page/faq/faqtypeinfo.html";
    var delUrl = '/faqtype/del';
    var save = '/faqtype/save';
    var listUrl = "/faqtype/list";
    var edit = "/faqtype/edit";
    var detail = "/faqtype/edit";
    var columns = [[{
        field: 'id',
        checkbox: true
    }, {
        field: 'parent',
        title: '问题分类',
        formatter: function (value, row, index) {
            if (value != null) {
                return value.name;
            }
        }
    }, {
        field: 'name',
        title: '问题栏目'
    }, {
        field: 'code',
        title: '编码'
    }, {
        field: 'orderBy',
        title: '排序'
    }, {
        field: 'createdDate',
        title: '添加时间'
    }


    ]];
    list.init({url: listUrl, columns: columns});
</script>
